package org.zhou.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.zhou.pojo.User;

import java.util.List;

//注解表示了这是一个mybatis的mapper类
@Mapper
@Repository
public interface UserMapper {



    List<User> queryUserList();

    User queryUserById(@Param("id") int id);

    int addUser(User user);

    int updateUser(User user);

    int deleteUserById(@Param("id") int id);


}
